#include "mainwindow.h"
#include "ui_mainwindow.h"

#include <childdialog.h>


MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_pushButton_clicked() // pushButton 按钮的点击事件
{
    close();
    childDialog childDialog;
    if(childDialog.exec() == QDialog::Accepted){
        this->show();
    }else{
        return;
    }
}

